package com.woniuxy.service;

import com.woniuxy.pojo.Menu;
import com.woniuxy.pojo.Role;
import com.woniuxy.util.DataGridView;
import com.woniuxy.vo.RoleVo;

import java.util.List;

public interface RoleService {
    public List<Role> findAllRoles();

    public List<Role> selectRolesByUsid(int usid);

    public DataGridView selectRolesByPage(RoleVo roleVo);

    public List<Menu> selectAllMenus();

    public String[] selectMenuIdsByRid(int rid);

    public void assignRight(int rid, String[] mids);

    public void removeRoleById(int id);
}
